package wjh.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wjh.mapper.ZlyDepartmentMapper;
import wjh.pojo.Department;

import java.util.List;

@Service
public class ZlyDepartmentServiceImpl implements ZlyDepartmentService {
    @Autowired
    private ZlyDepartmentMapper zlyDepartmentMapper;

//    @Transactional
    @Override
    public List<Department> findAll() {
        return zlyDepartmentMapper.findAll();
    }

    @Override
    public String findById(Integer id) {
        return zlyDepartmentMapper.findById(id);
    }
}
